/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.lifxue.jqda.data.bean;

/**
 *
 * @author xuelf
 */
public class AppInfoBean implements Comparable<AppInfoBean>{
    private int volumeOfUse;
    private String path;

    public AppInfoBean(){
        volumeOfUse = 0;
    }

    @Override
    public int compareTo(AppInfoBean o) {
        int i = this.getVolumeOfUse() - o.getVolumeOfUse();
        if(i == 0){
            i = o.getPath().compareTo(this.getPath());
        }
        return i;

    }

    /**
     * @return the volumeOfUse
     */
    public int getVolumeOfUse() {
        return volumeOfUse;
    }

    /**
     * @param volumeOfUse the volumeOfUse to set
     */
    public void setVolumeOfUse(int volumeOfUse) {
        this.volumeOfUse = volumeOfUse;
    }

    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }

}
